package com.design.mode.factory;

/**
 * Created by lucky on 2018/9/14.
 */
public class MainFactory {
    public static void main(String[] args) {
        Factory factory = new IDCardFactory();
        Product a = factory.create("小红");
        Product b = factory.create("小明");
        Product c = factory.create("小张");
        a.use();
        b.use();
        c.use();
    }
}
